﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:23
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	///快递公司 扩展
	/// </summary>
	public partial class ExpressCompanyOperate
	{
        /// <summary>
    	/// 根据断言条件获取单个快递公司
    	/// </summary>
        public static ExpressCompanyInfo QuerySingle(Expression<Func<ExpressCompanyInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        
        /// <summary>
    	/// 根据断言条件获获取快递公司列表
    	/// </summary>
        public static IList<ExpressCompanyInfo> QueryList(Expression<Func<ExpressCompanyInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 获取快递信息
        /// </summary>
        /// <param name="cityId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static IList<ExpressCompanyInfo> GetInfoByBizTypeAndCityId(int cityId, int bizTypeId)
        {
            return dal.GetInfoByBizTypeAndCityId(cityId, bizTypeId);
        }
    }
}